class inary:
    class source:
        name = "python"
        homepage = "https://gitlab.com/sulinos/devel/inary"

        class packager:
            name = "Ali Rıza KESKİN"
            email = "parduscix@yandex.ru"
        license = "GPLv3"
        isa = []
        summary = "Python programming language"
        description = "Python3 programming language interpreter"
        archive = [("5208c1d1e0e859f42a9bdbb110efd0855ec4ecf1","https://www.python.org/ftp/python/3.9.7/Python-3.9.7.tar.xz"),
          ]
        builddependencies = ["bzip2-devel","gdbm-devel","libffi-devel","util-linux-devel","ncurses-devel","openssl-devel",
                              "readline-devel","xz-devel","zlib-devel"]
        packages = ["package","package_docs" , "package_devel",
                    "package_pages", "package_32bit"]
        patches = ["sulin_path.patch"]

    class package:
        name = "python"
        runtimedependencies = []
        files = [("config", "/etc"),
                 ("localedata", "/usr/share/locale"),
                 ("info", "/usr/share/info"),
                 ("data", "/usr/share"),
                 ("executable", "/usr/bin"),
                 ("library", "/usr/lib"),
                 ("library", "/lib"),
                 ("library", "/usr/libexec"),
                 ("executable", "/bin")]

    class package_docs:
        name = "python-docs"
        runtimedependencies = []
        files = [("library", "/usr/share/doc/")]

    class package_pages:
        name = "python-pages"
        runtimedependencies = []
        files = [("library", "/usr/share/man/")]

    class package_32bit:
        name = "python-32bit"
        buildtype = "emul32"
        runtimedependencies = ["python"]
        files = [("library", "/usr/lib32"),
                 ("library", "/lib32")]

    class package_devel:
        name = "python-devel"
        runtimedependencies = ["bzip2-devel","gdbm-devel","libffi-devel","util-linux-devel","ncurses-devel","openssl-devel",
                              "readline-devel","xz-devel","zlib-devel"]
        files = [("data", "/usr/lib/pkgconfig"),
                 ("header", "/usr/include"),
                 ("data","/usr/lib/python3.9/config-*")]

    class history:
        update = [
            ["2021-08-29", "3.9.7", "First release",
                "Ali Rıza KESKİN", "parduscix@yandex.ru"],
        ]
